package com.tanhua.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@EnableCaching //开启注解支持  如果方法上有@Cacheable这个注解就会把方法的返回结果缓存 默认会缓存到jvm的内存中，
// 但是如果有redis的启动器就会缓存到redis中
public class TanhuaAppServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(TanhuaAppServerApplication.class,args);
    }
}